<!DOCTYPE html>
<html>
<head>
    <meta charset='UTF-8'>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <common-head></common-head>
    </div>
</body>
<script src="../vue.js"></script>
<script>
    Vue.component('common-head',{
        template:`
        <div>
            <button v-on:click='count +=1'>点击{{count}}次</button>  
        </div>
        `,
        data: function(){
            return{
                count:0
            }
        }
    })
    const rw = new Vue({
        el:"#app",
    })
</script>
</html>